/* switch 开关按钮自定义样式 */
.label-switch {
  display: inline-block;
  vertical-align: middle;
  width: 64px;
  border-radius: 16px;
  box-sizing: border-box;
  height: 28px;
  position: relative;
  cursor: pointer;
  -ms-flex-item-align: center;
  -webkit-align-self: center;
  align-self: center;
}
.label-switch .checkbox {
  width: 64px;
  border-radius: 16px;
  box-sizing: border-box;
  height: 28px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  position: relative;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}
.label-switch .checkbox:before {
  content: ' ';
  position: absolute;
  left: 0px;
  top: 0px;
  width: 64px;
  border-radius: 16px;
  box-sizing: border-box;
  height: 28px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
  -webkit-transform: scale(1);
  transform: scale(1);
}
.label-switch .checkbox:after {
  content: ' ';
  height: 20px;
  width: 20px;
  border-radius: 20px;
  background: #B5B5B7;
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 3px;
  border: 1px solid #fff;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
  -webkit-transform: translateX(0px);
  transform: translateX(0px);
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
}
.label-switch input[type="checkbox"] {
  display: none;
}
.label-switch input[type="checkbox"]:checked + .checkbox {
  background: rgba(255, 255, 255, 0.6);
}
.label-switch input[type="checkbox"]:checked + .checkbox:before {
  -webkit-transform: scale(0);
  transform: scale(0);
}
.label-switch input[type="checkbox"]:checked + .checkbox:after {
  background: #34BCCC;
  -webkit-transform: translateX(36px);
  transform: translateX(36px);
}
html.android .label-switch input[type="checkbox"] + .checkbox {
  -webkit-transition-duration: 0;
  transition-duration: 0;
}
html.android .label-switch input[type="checkbox"] + .checkbox:after,
html.android .label-switch input[type="checkbox"] + .checkbox:before {
  -webkit-transition-duration: 0;
  transition-duration: 0;
}